<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

echo '¿?hola núbia!';
?>
<script type="text/javascript">
    $(function(){ 
        
        var eventosGrilla = [
            { type: 'keypress', fn: function(e) { console.log('keypress'); } }
        ];
        
        $("#list").jqGrid({
            url: base_url+'index.php/configuracion_menus/grilla',
            datatype: 'json',
            mtype: 'POST',
            colModel :[ 
                {name:'men_nombre_largo', label : 'Nombre Largo', resizable:false, sortable:false, editable:true , editoptions: { dataEvents:eventosGrilla }, editrules:{edithidden:true, required:true} }, 
                {name:'men_nombre_corto', label : 'Nombre Corto'}, 
            ],
            autowidth: true,
            sortorder: 'desc',
            viewrecords: true,
            gridview: true,
            caption: 'Menus',
            cellEdit : true
        }); 
    }); 
</script>

<table id="list"></table>
